﻿using IterationLife.FootballTeaching.Models;
using Util.Datas.Ef;

namespace IterationLife.Datas.Mappings.FootballTeachings {
    /// <summary>
    /// 课程分类映射配置
    /// </summary>
    public class CourseCategoryMap : AggregateRootMapBase<CourseCategory> {
        /// <summary>
        /// 映射表
        /// </summary>
        protected override void MapTable() {
            ToTable( "CourseCategories", "FootballTeaching");
        }
        
        /// <summary>
        /// 映射属性
        /// </summary>
        protected override void MapProperties() {
            //课程分类编号
            Property(t => t.Id)
                .HasColumnName("CourseCategoryId");
            //封面图
            Property(t => t.BannerJsonStr)
                .HasColumnName("Banner");
        }
        
        /// <summary>
        /// 映射导航属性
        /// </summary>
        protected override void MapAssociations() {
        }
    }
}